package tsCIM.modelForInterface

import net.sf.json.JSONObject
import tsCIM.ResultCode

/**
 * Created by Administrator on 2019-03-16.
 */
class ResultModel {
    static Code = "code"
    static Msg = "message"
    static Data = "data"
    static ServerErrorFlag = "ServerErrorFlag"

    /**
     * ������PDAͨ�Ž��ģ��
     * @return
     */
    static JSONObject getResultModel(){
        def result = new JSONObject()
        result.put(Code,ResultCode.OPT_SUCCESS.code)
        result.put(Msg,ResultCode.OPT_SUCCESS.msg)
        result.put(ServerErrorFlag,false)
        result.put(Data,"")
        return result
    }

}
